package com.example.qihuibao.bean

import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.example.qihuibao.dao.Converters

@TypeConverters(Converters::class)
@Entity(tableName = "EnterpriseInfo")
data class RspQueryEnterpriseInfoBean(
    @PrimaryKey
    val CorpID:String = "",//企业ID
    val CorpName:String? = null,//企业名称
    val Status:String? = null,//状态: 0 正常,1 冻结
    val AccountStandard:String? = null,//系统对接模式:1 企慧宝,2 外部系统,3 企慧宝电子钱包
    val BindFlag:String? = null,//关系人绑定开关:0关 1开
    val OuterBindFlag:String? = null,//单位外绑定开关:0关 1开
    val FriendBind:String? = null,//亲友绑定开关及方式:0 关闭,1预留信息,2身份证后6位
    val PerBalanceLimit:Int = 0,//个人账户余额上限,对账标准为企慧宝才生效 (//todo 非必填)
    val RechargeAmtLimit:Int = 0,//单笔充值限额
    val DailyRechargeAmtLimit:Int = 0,//日累计充值限额
    val RefundAmtLimit:Int = 0,//单笔退款限额
    val DailyRefundAmtLimit:Int = 0,//日累计退款限额
    val OverdraftLimit:Int = 0,//透支限额
    val RemindSmsFlag:String? = null,//充值提醒开关:0关 1开
    val RemindSmsThreshold:Int = 0,//充值提醒阀值
    val ETicketFlag:String? = null,//电子餐票开关:0关 1开
    //人员类型列表EmpTypeList
    @TypeConverters(EmpType::class) val EmpTypeList:List<EmpType>? = null,
    //餐厅列表CantList
    @TypeConverters(Cant::class) val CantList: List<Cant>? = null,
    //电子餐票类型列表ETicketTypeList
    @TypeConverters(ETicketType::class) val ETicketTypeList:List<ETicketType>? = null,
) : BaseRspBean() /*{
    data class EmpType (
        val EmpTypeID:String? = null,//人员类型ID，1-10
        val EmpTypeName:String? = null,//人员类型定义
        var select:Boolean = false,//本地添加,标记checkbox选择使用
    )
    data class Cant(
        val CantID:String? = null,//餐厅ID
        val CantName:String? = null,//餐厅名称
        val Status:String? = null,//状态：0 正常,1 冻结
    )
    data class ETicketType(
        val ETicketTypeID:String? = null,//电子餐票类型ID，91-99
        val ETicketName:String? = null,//电子餐票名称
        val Status:String? = null,//状态：0 不开通,1 开通
    )
}*/